package ch.unifr.diva.multimodals.spherex;

import android.widget.SeekBar;
import android.widget.SeekBar.OnSeekBarChangeListener;

	public class MyOnSeekBarChangeListener implements OnSeekBarChangeListener{
		private String name;
    	private NetConfigurationActivity netConfig;
		
		public MyOnSeekBarChangeListener(String name, NetConfigurationActivity netConfig){
		super();
		this.name=name;
		this.netConfig=netConfig;
		}
		
    	@Override
    	public void onProgressChanged(SeekBar seekBar, int progress,
    	  boolean fromUser) {
    		netConfig.sendNewValue(name, progress);
    	}
    	@Override
    	public void onStartTrackingTouch(SeekBar seekBar) {
    		//netConfig.appendToConsole("\nStartTrackingTouch on "+name);
    	}

    	@Override
    	public void onStopTrackingTouch(SeekBar seekBar) {
    		//netConfig.appendToConsole("\nStopTrackingTouch on "+name);
    		//netConfig.appendToConsole("\nProgressChanged on "+name+": "+seekBar.getProgress());
    		//netConfig.sendNewValue(name, seekBar.getProgress());
    	}
    	
    	
    	
    	
    	
	
}

